package finalgame.GUI.stage;

import org.newdawn.slick.geom.Rectangle;

import finalgame.Engine.Object;
import finalgame.Graphics.RenderObj;
import finalgame.Graphics.Renderable;

public abstract class Element implements RenderObj, Object {
	protected Rectangle bounds;
	protected boolean solid;
	
	public Rectangle getBounds() {
		return bounds;
	}
	
	public boolean intersects(Object o) {
		return bounds.intersects(o.getBounds()) && solid;
	}
}
